package edu.sctu.zhengsenwen.month201505.day20150520;

/**
 * Created by user15 on 2015/5/20.
 */





//public class UserValidator {
//    private Cryptographer cryptographer;
//
//    public boolean checkPassword(StringOne userName,StringOne password){
//        User user = UserGateway.findByName(userName);
//
//        if(user != User.NULL){
//            StringOne codePhrase = user.getPhraseEncodedByPassword();
//            StringOne phrase = crytographer.decrypt(codedPhrase,password);
//
//            if("Valid Password".equals(phrase)){
//                Session.initialize();
//                return ture;
//            }
//        }
//        return false;
//    }
//}
